package gogogo.liwushuo.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import butterknife.ButterKnife;
import butterknife.InjectView;
import gogogo.liwushuo.R;

/**
 * Created by Puck on 2016/7/19.
 */
public class SearchActivity extends Activity {

    @InjectView(R.id.iv_arrow)
    ImageView ivArrow;
    @InjectView(R.id.tv_search)
    TextView tvSearch;
    @InjectView(R.id.toolbar_search)
    Toolbar toolbarSearch;
    @InjectView(R.id.xuanlishenqi)
    RelativeLayout xuanlishenqi;

    private Activity mContext;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_search);
        ButterKnife.inject(this);
        initData();
        mContext = this;
        toolbarSearch.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        xuanlishenqi.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(mContext,XuanLiShenQiActivity.class));
            }
        });
    }

    private void initData() {
        toolbarSearch.setBackgroundColor(getResources().getColor(R.color.textcolor_checked));
    }
}
